Digital camera, digital camera control apparatus, digital camera system, digital camera control method, and medium

ABSTRACT

It is an object that even after a file system was changed by an external apparatus, a photographing and a recording operation can be normally performed. Under such an object, in a digital camera constructed by recording means which can be rewritten by a digital camera control apparatus connected to an outside and information holding means for holding information regarding the recording means there is provided an apparatus such that the information regarding the recording means is updated by reflecting the contents in the recording means by the information holding means in response to a request from the digital camera control apparatus, so that when a photographing or a communication is performed, the contents in the recording means is always reflected to the information holding means.

BACKGROUND OF THE INVENTION

[0001] 1. Field of the Invention

[0002] The invention relates to a digital camera, a digital camera control apparatus, a digital camera system, a digital camera control method, and a medium which can be controlled by a communication.

[0003] 2. Related Background Art

[0004] Hitherto, there has been proposed a digital camera system such that an image photographed by a digital camera is displayed or the like on a personal computer (hereinafter, simply referred to as a PC) or, contrarily, data managed on the PC is recorded to the digital camera.

[0005]FIG. 4 is a constructional diagram showing an outline of a digital camera system. In FIG. 4, reference numeral 1003 denotes a PC and 1007 indicates a digital camera. The digital camera 1007 has a PCMCIA card slot 1008 and can record images in a PCMCIA card (not shown).

[0006] Reference numeral 1006 denotes a cable to connect the PC 1003 and the digital camera 1007. A serial or parallel cable is used as a cable 1006. The PC 1003 performs a communication through the cable 1006 and can read the images recorded in the PCMCIA card of the digital camera 1007 or can write data into the PCMCIA card.

[0007]FIG. 5 is a block diagram showing a constructional example of the conventional digital camera 1007. In FIG. 5, reference numeral 1107 denotes hardware of the digital camera 1007 and 1100 indicates software. Only main portions of the digital camera 1007 are shown in FIG. 5.

[0008] In FIG. 5, reference numeral 1106 denotes an image pickup device comprising a CCD or the like which is necessary for image pickup. Reference numeral 1105 denotes a recording medium such as a PCMCIA card or the like to store the photographed image data or the like. Reference numeral 1104 denotes a file system having a function for enabling another software to perform an input/output process of the file without being aware of the hardware.

[0009] Reference numeral 1103 denotes a photographing information management unit having a function to manage various information which are necessary to perform a photographing. As information to be managed, there are the number of images which can be photographed and stored in the recording medium 1105, the number that is used as a name of image to be photographed at the next time, and the like.

[0010] Reference numeral 1101 denotes a photographing execution unit having functions such that the image pickup device 1106 is driven and a photographing is performed, the photographed images are recorded with names using serial numbers through the photographing information management unit 1103, and if the number of images which can be photographed and stored in the recording medium 1105 is insufficient, a decision is made so as not to perform the photographing or the like.

[0011] Reference numeral 1108 denotes a communication port. When communicating with the PC 1003 as shown in FIG. 4, the serial or parallel cable 1006 is connected to the communication port 1108. Reference numeral 1102 denotes a communication control unit having functions such that a signal transmitted from the communication port 1108 is processed, and in accordance with a request from the PC 1003, the photographed image is read through the file system 1104 and is transmitted or unnecessary images are deleted or data sent from the PC 1003 is written.

[0012] In the conventional digital camera system constructed as mentioned above, the PC 1003 can directly access to the file system 1104 of the digital camera 1007 by a communication. For example, the images photographed by the digital camera 1007 can be deleted or a file other than the images can be written.

[0013] Therefore, in case of intending to perform a photographing by the digital camera 1007 after the operation such as to delete the photographed images or to write the file other than the images was executed by the PC 1003, there is a possibility of occurrence of a contradiction with the information which the photographing information management unit 1103 has.

[0014] For example, it is assumed that when the images to which the names from No. 1 to No. 5 were allocated have been photographed and stored in the recording medium 1105, the photographing information management unit 1103 prepares No. 6 as a number that is used as a name of an image to be photographed at the next time.

[0015] In this instance, a case where the PC 1003 directly accesses to the file system 1104 and deletes the image of No. 5 and, thereafter, performs a photographing is now considered. In this case, although it is inherently sufficient to photograph the image by the name of No. 5, since the photographing information management unit 1103 does not have means for detecting that the image of No. 5 was deleted, there is a problem such that the number that is used as a name of the image to be subsequently photographed cannot be changed and the image having the name of No. 6 is photographed.

[0016] Or, in the case where the digital camera 1007 intends to perform a photographing after the PC 1003 wrote a file other than the images into the recording medium 1105, in spite of a fact that a vacant capacity of the recording medium 1105 has been reduced, the photographing information management unit 1103 cannot detect it. There is, consequently, a fear such that although the vacant capacity of the recording medium 1105 is actually insufficient, the photographing execution unit 1101 executes the photographing operation.

SUMMARY OF THE INVENTION

[0017] In consideration of the above drawbacks, it is an object of the invention to enable storage means to be preferably managed.

[0018] Another object of the invention is to enable storage means of a digital camera to be preferably managed.

[0019] Still another object of the invention is to make it possible to manage storage means of a digital camera which is connected to a host computer.

[0020] Further another object of the invention is to make it possible to normally perform a photographing and recording operations by a digital camera even after a file system in the digital camera was changed by an external apparatus such as a computer or the like.

[0021] To accomplish the above objects, according to a preferred embodiment of the invention, there is provided a digital camera comprising: recording means which can be rewritten from the outside; and information holding means for holding information regarding the recording means, wherein the information holding means updates the information regarding the recording means while reflecting the contents in the recording means.

[0022] In a system comprising a host computer and a digital camera, it is further another object of the invention to provide the digital camera and host computer which make it possible to preferably manage storage means and to also provide a control method for controlling those apparatuses and a medium in which such a control method has been stored.

[0023] The above and other objects and features of the present invention will become apparent from the following detailed description and the appended claims with reference to the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

[0024]FIG. 1 shows an embodiment of the invention and is a block diagram showing a constructional example of main portions of a digital camera;

[0025]FIG. 2 is a flowchart showing the operation when the digital camera of the embodiment photographs;

[0026]FIG. 3 is a flowchart showing the operation when the digital camera according to the embodiment communicates with a digital camera control apparatus connected to the outside;

[0027]FIG. 4 is a diagram showing a digital camera system in which a digital camera and a digital camera control apparatus are connected; and

[0028]FIG. 5 is a block diagram showing a constructional example of a conventional digital camera.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0029]FIG. 1 is a block diagram showing a constructional example of a digital camera according to an embodiment. In FIG. 1, blocks having the same functions as those in FIG. 5 are designated by the same reference numerals and their detailed descriptions are omitted. Only the main portions are shown. A digital camera control apparatus and a digital camera system in the embodiment are constructed in a manner similar to those in FIG. 4 and are not shown.

[0030] In FIG. 1, reference numeral 102 denotes a secondary storage unit comprising a non-volatile memory or the like. The secondary storage unit 102 has a function to store a flag indicating that it is necessary to reflect the contents in the file system 1104 to the information which the photographing information management unit 1103 has and to match them. The flag is set when the contents in the recording medium 1105 are rewritten. The flag is cleared when the contents are reflected to the photographing information management unit 1103. The flag has been cleared in an initial state.

[0031] Reference numeral 101 denotes a communication control unit having functions such that a signal from the communication port 1108 is processed, and in accordance with a request from the PC (1003 in FIG. 4) connected to the communication port 1108, photographed images are read through the file system 1104 and transmitted, unnecessary images are deleted, or data sent from the PC is written.

[0032] Reference numeral 100 denotes a photographing information initialization unit having functions for updating the information managed by the photographing information management unit 1103 in response to a request from the communication control unit 101, thereby preventing the occurrence of contradiction with a present state of the file system 1104. The photographing information initialization unit 100 has functions for setting or clearing a flag indicating that it is necessary to reflect the contents in the file system 1104 to the information which the photographing information management unit 1103 has and to match them.

[0033] The operation of a digital camera of the embodiment will now be described. First, the operation when a photographing is performed will be explained. FIG. 2 is a flowchart for explaining the operation when performing a photographing.

[0034] When the operation is started, first in step 200, the photographing information initialization unit 100 refers to a setting status of the flag stored in the secondary storage unit 102. When the flag has been set, this means that the information of the photographing information management unit 1103 is contradictory to the file system 1104 as will be explained hereinlater. Therefore, in this case, the processing routine advances to step 201.

[0035] In step 201, the photographing information initialization unit 100 requests the photographing information management unit 1103 to update the photographing information.

[0036] When receiving the request from the photographing information initialization unit 100, the photographing information management unit 1103 updates the information which is managed by itself with reference to the file system 1104 in response to the request of the photographing initialization unit 100.

[0037] For example, the number of images which can be photographed and stored in the recording medium 1105, the numbers to be allocated to the names of the photographed images, and the like are updated. If the images having the names of Nos. 1 to 4 exist in the recording medium 1105, No. 5 is prepared as a number to be allocated to the name of the photographed image.

[0038] On the other hand, when it is determined in step 200 that the photographing information is not updated or when the process in step 201 is finished, the processing routine advances to step 202 and the photographing operation is executed. Specifically speaking, the photographing execution unit 1101 obtains the number of images which can be photographed from the photographing information management unit 1103, discriminates whether images can be recorded in the recording medium 1105 or not, and further, obtains the numbers to be allocated as names to the images and the like. After that, the image pickup device 1106 is driven and a photographing is performed. The electric signal obtained by photographing is recorded as an image into the recording medium 1105.

[0039] The operation when the digital camera of the embodiment communicates with an external digital camera control apparatus such as a PC or the like will now be described.

[0040]FIG. 3 is a flowchart showing the operation when the digital camera communicates with the external digital camera control apparatus.

[0041] When the operation is started, in first step 300, the photographing information initialization unit 100 discriminates whether the updating of the photographing information is request to the photographing information management unit 1103 or not with reference to the status of the flag stored in the secondary storage unit 102.

[0042] When the flag has been set in the secondary storage unit 102, step 301 follows and the photographing information initialization unit 100 requests the photographing information management unit 1103 to update the photographing information. Since this operation is the same as that in steps 200 and 201 in FIG. 2, its detailed description is omitted.

[0043] In the processes in step 310 and subsequent steps, a process corresponding to an instruction sent from a digital camera control apparatus connected to the outside is executed. This instruction is obtained by a method whereby the communication control unit 101 interprets the electric signal sent from the digital camera control apparatus through the communication port 1108. In the embodiment, five instructions are prepared.

[0044] First in step 310, a check is made to see if the instruction sent from the digital camera control apparatus is “Terminate”. “Terminate” is an instruction to finish the communication. Therefore, when the instruction sent from the digital camera control apparatus is “Terminate”, the communication control unit 101 finishes the communication in accordance with a predetermined operation.

[0045] In step 302, a check is made to see if the instruction sent from the digital camera control apparatus is “Read File”. “Read File” is an instruction to designate a file and to read the data such as an image or the like recorded in the recording medium 1105. When the instruction sent from the digital camera control apparatus is “Read File”, step 306 follows and the communication control unit 101 executes processes for reading out the file designated by “Read File” from the file system 1104 and for transmitting it to the digital camera control apparatus through the communication port.

[0046] On the other hand, when it is determined in step 302 that the instruction sent from the digital camera control apparatus is not “Read File”, step 303 follows. In step 303, a check is made to see if the instruction sent from the digital camera control apparatus is “Write File”. If YES, step 307 follows. “Write File” is an instruction to designate a file and to write it into the data recorded in the recording medium 1105.

[0047] In step 307, the communication control unit 101 writes through the file system 1104 to the file designated by the “Write File” instruction. After completion of the writing process, step 311 follows and the flag stored in the secondary storage unit 102 is set in order to show the necessity to update the photographing information for the photographing information initialization unit 100.

[0048] Different from “Read File”, “Write File” is an instruction to rewrite the contents in the recording medium 1105. The “Write File” instruction can increase, for instance, the contents in the designated file and this results in a decrease in number of images which can be photographed. In such a case, by setting the foregoing flag, it is shown that it is necessary to update the photographing information which is managed by the photographing information management unit 1103.

[0049] When it is determined in step 303 that the instruction is not “Write File”, step 304 follows. In step 304, a check is made to see if the instruction sent from the digital camera control apparatus is “Delete File”. If YES, step 308 follows. “Delete File” is an instruction for designating a file and for deleting the data recorded in the recording medium 1105. The “Delete File” instruction is also used to rewrite the contents in the recording medium 1105 in a manner similar to “Write File”. Therefore, in subsequent step 312, the communication control unit 101 sets the flag in the secondary storage unit 102 into the photographing information initialization unit 100.

[0050] When it is decided in step 304 that the instruction is not “Delete File”, step 305 follows. In step 305, a check is made to see if the instruction sent from the digital camera control apparatus is “Refresh”. If YES, step 309 follows.

[0051] “Refresh” is an instruction for reflecting the contents in the file system 1104 to the photographing information which is managed by the photographing information management unit 1103, thereby matching them. After the contents in the recording medium 1105 were rewritten, the digital camera control apparatus has to send the “Refresh” instruction.

[0052] However, it is not always necessary to send the “Refresh” instruction each time the contents in the recording medium 1105 are rewritten. The “Refresh” instruction can be transmitted at an arbitrary timing after the contents were rewritten to a certain extent or the like. When the “Refresh” instruction is sent, the communication control unit 101 advances to step 309 and clears the flag stored in the secondary storage unit 102 for the photographing information initialization unit 100 in order to indicate the necessity of updating the photographing information. The photographing information initialization unit 100 allows the photographing information management unit 1103 to update the photographing information which is managed with reference to the file system 1104.

[0053] When the “Refresh” instruction is sent, the contents in the photographing information management unit 1103 and file system 1104 are matched. However, there is a case where the digital camera control apparatus cannot transmit this instruction because of a reason such that the cable for communication to connect the digital camera and the digital camera control apparatus is disconnected or the like.

[0054] In such a case, since the flag in the secondary storage unit 102 is not cleared, as mentioned above, when the subsequent photographing or communication is started, the contents in the photographing information management unit 1103 are automatically updated in step 201 in FIG. 2 or in step 301 in FIG. 3.

[0055] In the embodiment, if the “Refresh” instruction cannot be transmitted due to a reason such that the cable is disconnected or the like in spite of a fact that the digital camera control apparatus connected to the outside has rewritten the contents in the recording medium 1105, when the next photographing or communication is started, the photographing information management unit 1103 automatically matches with the contents in the file system 1104.

[0056] However, if the flag in the secondary storage unit 102 has been set after “Terminate” was received in step 310 in FIG. 3, the photographing information initialization unit 100 can also instruct the photographing information management unit 1103 to update the photographing information before the end of the communication.

[0057] In this case, when the photographing is started, it is unnecessary to perform the updating process of the photographing information in steps 200 and 201 in FIG. 2. Even when the communication is started, there is no need to perform the updating process of the photographing information in steps 300 and 301 in FIG. 3. Thus, when the next photographing or communication is started, the contents in the photographing information management unit 1103 and file system 1104 have been matched.

[0058] [Other Embodiments of the Invention]

[0059] The invention can be applied to a system constructed by a plurality of equipment (for example, host computer, interface equipment, reader, printer, etc.) or can be also applied to an apparatus comprising one equipment.

[0060] An embodiment such that in order to make various devices operative so as to realize the functions of the foregoing embodiments, program codes of software for realizing the functions of the embodiments are supplied to a computer in an apparatus or system connected to those various devices and the invention is accomplished by making the various devices operative in accordance with a program stored in the computer (CPU or MPU) of the system or apparatus is also incorporated in the invention.

[0061] In this case, the program codes themselves of the software realize the functions of the foregoing embodiments. The program codes themselves and means for supplying the program codes to the computer, for instance, storage medium in which those program codes have been stored construct the invention. As a storage medium to store those program codes, for example, it is possible to use a floppy disk, a hard disk, an optical disk, a magnetooptic disk, a CD-ROM, a magnetic tape, a non-volatile memory card, an ROM, or the like.

[0062] It will be obviously understood that even in not only a case where the functions of the foregoing embodiments are realized by executing the supplied program codes by the computer but also a case where the functions of the foregoing embodiments are realized by the program codes in cooperation with the OS (operating system) which is running in the computer or another application software or the like, the above program codes are also incorporated in the embodiment of the invention.

[0063] Further, a case where after the supplied program codes were stored in a memory provided for a function expansion board of a computer or a function expansion unit connected to the computer, a CPU or the like provided for the function expansion board or function expansion unit executes a part or all of the actual processes on the basis of instructions of the program codes, and the functions of the foregoing embodiments are realized by those processes is also obviously incorporated in the invention.

[0064] According to the embodiment, when a contradiction with the contents in the recording means occurs or when there is a request from the digital camera control apparatus connected to the outside, the information holding means for holding the information regarding the recording means reflects the contents in the recording means and updates the information regarding the recording means, so that in case of performing a photographing or communication, the contents in the recording means can be always reflected to the information holding means. Thus, it is possible to construct such that even after communicating with the digital camera control apparatus connected to the outside, no problem occurs in the photographing and recording operations of the image. 

What is claimed is:
 1. An imaging apparatus comprising: storage means which can be rewritable from an outside; generating means for generating image information to be written into said storage means; managing means for managing a storage state of said storage means in an interlocked relation with an operation to write the image information generated by said generating means into said storage means; and control means for controlling said managing means in response to an access to said storage means from said outside.
 2. An apparatus according to claim 1, wherein said storage means is a semiconductor memory.
 3. An apparatus according to claim 2, wherein said storage state is information indicative of a presence or absence of the storage of each memory area in said semiconductor memory.
 4. An imaging apparatus comprising: recording means which can be rewritten from an outside; information holding means for holding information regarding said recording means; and flag storage means for storing a flag indicating whether it is necessary to update the information regarding said recording means or not, wherein said information holding means reflects contents in said recording means and updates the information regarding said recording means on the basis of a status of said flag stored in said flag storage means.
 5. An apparatus according to claim 4, wherein said flag is set when the contents in said recording means are rewritten and said flag is cleared at a time point when said contents are reflected into said information holding means.
 6. A digital camera which can communicate with a digital camera control apparatus, comprising: recording means which can be rewritten by said digital camera control apparatus; and information holding means for holding information regarding said recording means, wherein said information holding means reflects the contents in said recording means and updates the information regarding said recording means in response to a request from said digital camera control apparatus.
 7. A digital camera which can communicate with a digital camera control apparatus, comprising: recording means which can be rewritten by said digital camera control apparatus; and information holding means for holding information regarding said recording means, wherein when a contradiction occurs between said information holding means and said contents in said recording means as a result of that said digital camera control apparatus rewrote said recording means, said information holding means reflects the contents in said recording means and updates the information regarding said recording means.
 8. A digital camera which can communicate with a digital camera control apparatus, comprising: recording means which can be rewritten by said digital camera control apparatus; and information holding means for holding information regarding said recording means, wherein when a contradiction occurs between said information holding means and said contents in said recording means as a result of that said digital camera control apparatus rewrote said recording means in association with a photographing or at a timing in association with a communication with said digital camera control apparatus, said information holding means reflects the contents in said recording means and updates the information regarding said recording means.
 9. A digital camera control apparatus which can communicate with an imaging apparatus comprising recording means which can be rewritten from an outside and information holding means for holding information regarding said recording means, wherein when contents in said recording means are rewritten, said information holding means is controlled so as to reflect the contents in said recording means and update the information regarding said recording means.
 10. A digital camera control apparatus which can communicate with a digital camera comprising recording means which can be rewritten from an outside and information holding means for holding information regarding said recording means, wherein when a contradiction occurs between said information holding means and said contents in said recording means as a result of that said recording means was rewritten in association with a photographing or at a timing in association with a communication, said information holding means is controlled so as to reflect the contents in said recording means and update the information regarding said recording means.
 11. A digital camera according to claim 8, wherein said timing in association with said photographing is a timing to start said photographing.
 12. A digital camera according to claim 8, wherein said timing in association with said photographing is a timing to finish said photographing.
 13. A digital camera according to claim 8, wherein said timing in association with said communication is a timing to start the communication.
 14. A digital camera according to claim 8, wherein said timing in association with said communication is a timing to finish the communication.
 15. A digital camera system in which a digital camera and a digital camera control apparatus are connected so that they can communicate with each other, wherein said digital camera comprises recording means which can be rewritten by said digital camera control apparatus and information holding means for holding information regarding said recording means, and said information holding means reflects contents in said recording means and updates the information regarding said recording means in response to a request from said digital camera control apparatus.
 16. A digital camera system in which a digital camera and a digital camera control apparatus are connected so that they can communicate with each other, wherein in response to a request from said digital camera control apparatus, said digital camera reads photographed images, transmits them to said digital camera control apparatus, deletes unnecessary images, or writes data transmitted from said digital camera control apparatus into said recording means.
 17. A method of controlling a digital camera comprising recording means which can be rewritten from an outside and information holding means for holding information regarding said recording means, wherein said information holding means is controlled so as to reflect contents in said recording means and update the information regarding said recording means in response to a request from a digital camera control apparatus connected to the outside.
 18. A method of controlling a digital camera comprising recording means which can be rewritten from an outside and information holding means for holding information regarding said recording means, wherein when a contradiction occurs between said information holding means and said contents in said recording means as a result of that said digital camera control apparatus rewrote said recording means in association with a photographing or at a timing in association with a communication with said digital camera control apparatus connected to the outside, said information holding means is controlled so as to reflect the contents in said recording means and update the information regarding said recording means.
 19. A method according to claim 17, further having a medium in which said control method has been stored so that it can be executed by a computer.
 20. A method according to claim 18, further having a medium in which said control method has been stored so that it can be executed by a computer. 